chrome.contextMenus.create({
	"id" : "videoCapture",
	"title" : "截图",	
	"contexts" : ["video"]
});

chrome.contextMenus.onClicked.addListener(function(info, tab){
	console.log(info);
	if(info.menuItemId == 'videoCapture'){		
		chrome.tabs.executeScript({ file: 'capture.js' });
	}
});
